package com.juneng.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * 用户信息实体类
 *
 * @author zds
 * @since 2021-07-08
 */
@Data
@ApiModel(value = "User对象", description = "用户信息")
@TableName("user")
public class User implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 用户信息id
     */
  @ApiModelProperty(value = "用户信息id")
  @TableId(value = "user_id", type = IdType.AUTO)

  private Long userId;
    /**
     * 姓名
     */
  @ApiModelProperty(value = "姓名")

  private String nickname;
    /**
     * 头像
     */
  @ApiModelProperty(value = "头像")

  private String avatar;
    /**
     * 手机号
     */
  @ApiModelProperty(value = "手机号")

  private String phone;

  private LocalDateTime createDate;
    /**
     * 伪删除
     */
  @ApiModelProperty(value = "伪删除")

  private Integer status;
    /**
     * 冻结0否1是
     */
  @ApiModelProperty(value = "冻结0否1是")

  private Integer block;
    /**
     * 小程序唯一性标识符
     */
  @ApiModelProperty(value = "小程序唯一性标识符")
  @TableField("openId")

  private String openId;
    /**
     * 开放平台唯一标识
     */
  @ApiModelProperty(value = "开放平台唯一标识")
  @TableField("unionId")

  private String unionId;
    /**
     * 学习时长（毫秒）
     */
  @ApiModelProperty(value = "学习时长（毫秒）")

  private Integer learnTime;
    /**
     * 观看的视频数
     */
  @ApiModelProperty(value = "观看的视频数")

  private Integer numberOfVideos;


}
